package common.hua.com.mycontent;

import android.content.ContentProvider;
import android.content.ContentValues;
import android.database.Cursor;
import android.net.Uri;
import android.support.annotation.Nullable;
import android.widget.Toast;

import com.hua.common.commontools.MyLog;

/**
 * Created by huaxiaolin_pc on 2015/12/25.
 */
public class ContentP extends ContentProvider{

    @Override
    public boolean onCreate() {
        Toast.makeText(getContext().getApplicationContext(),"ContentP 初始化",Toast.LENGTH_LONG).show();
        MyLog.writeSystemLog("ContentP oncreate");
        return false;
    }

    @Nullable
    @Override
    public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
        MyLog.writeSystemLog("ContentP query");
        return null;
    }

    @Nullable
    @Override
    public String getType(Uri uri) {
        return null;
    }

    @Nullable
    @Override
    public Uri insert(Uri uri, ContentValues values) {
        MyLog.writeSystemLog("ContentP insert");
        return null;
    }

    @Override
    public int delete(Uri uri, String selection, String[] selectionArgs) {
        return 0;
    }

    @Override
    public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) {
        return 0;
    }
}
